home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-01-13 | 1.5 KB | 66 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="2"
- "COUNT"="1"
- "UIPATH"="Network\DNS"
- "NAME"="Windows NT DNS Time To Live"
- "VERSION"="1.04"
- "LANGUAGE"="VBScript"
- "WARNING"="1"
- "OSVERSION"="01000"
- "TEXT 1"="TTL"
- "DESCRIPTION 1"="The Windows NT DNS service normally caches all queries until their Time To Live (TTL) has expired."
- "DESCRIPTION 2"="By setting this field to "0" DNS will no longer cache any name but you can also enter your prefered TTL."
- "DESCRIPTION 3"="To restore the original settings, clear the field."
- "DESCRIPTION 4"="NOTE: This feature requires NT4 SP4 to work correctly."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
-
-
- SPC="HKLM\SYSTEM\CurrentControlSet\Services\DNS\"
- sP="HKLM\SYSTEM\CurrentControlSet\Services\DNS\Parameters\MaxCacheTtl"
-
- Sub Plugin_Initialize
- If RegPathExists(sPC) then
- i=RegReadValue(sP)
- if IsEmpty(i)=false then
- SetUIElement 1,i
- end if
- else
- Disable
- end if
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- i=GetUIElement(1)
-
- if i="" then
- 'Delete Value
-
- i=RegReadValue(sP)
- if not isEmpty(i) then
- Call RegDeleteValue(sP)
- end if
-
- else
- 'Set Value
-
- if IsNumeric(i) then
- Call RegWriteValue(sP,i,2)
- Call Restart
- else
- Call MsgError("Please enter a valid numeric value.")
- end if
-
- end if
-
-
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-